<form class="layui-form" id="layui-form" lay-filter="layui-form-add-user-page" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">登录名</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
          <input type="text" name="code" value="{{ d.params.code || '' }}" lay-verify="required" placeholder="请输入登录名" autocomplete="off" class="layui-input">
        </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
            <input type="text" name="name" value="{{ d.params.name || '' }}" lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
          </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-inline">
            <select name="sex" id="sex" >
                <option value="" selected="{{d.params.sex == ''}}">请选择</option>
                <option value=1 selected="{{d.params.sex == 1}}">男</option>
                <option value=0 selected="{{d.params.sex == 0}}">女</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
            <input type="text" name="mobilePhone" value="{{ d.params.mobilePhone || '' }}" lay-verify="phone" placeholder="请输入号码" autocomplete="off" class="layui-input">
          </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
          <input type="text" name="email" value="{{ d.params.email || '' }}" lay-verify="email" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
        </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <select name="roleid" id="rolelist" lay-filter="rolelist">
                    <option value=""></option>
                </select>
        </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">头像</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="file" name="files" multiple>
        </script>
        <button type="button" class="layui-btn" id="uploadhead">
            <i class="layui-icon">&#xe67c;</i>独立上传图片（直接访问后台可带数据）
          </button>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">日志信息</label>
        <div class="layui-input-block">
            <script type="text/html" template>
                <textarea name="" class="layui-textarea" readonly="readonly">
                     {{'最后登录时间: \r\n'+ d.params.lastLoginTime + '\r\n' + '\r\n' || '' }} 
                     {{'最后登录环境: \r\n'+ d.params.lastLoginEnvironment + '\r\n' + '\r\n'|| '' }}
                    {{'创建时间: \r\n'+  d.params.createTime + '\r\n' + '\r\n'|| '' }}
                    {{'创建人: \r\n'+ d.params.createMan + '\r\n' + '\r\n'|| '' }}
                    {{'最后修改时间: \r\n'+  d.params.modifyTime + '\r\n' + '\r\n'|| '' }}
                     {{'最后修改人: \r\n'+ d.params.modifyMan + '\r\n'+ '\r\n' || '' }}
                     {{'最后登录IP: \r\n'+  d.params.ip + '\r\n' + '\r\n' || '' }}
                </textarea>
            </script>
        </div>
    </div>
    <script type="text/html" template>
        <input type="text" hidden name="id" value={{d.params.id}}>
        <input type="text" hidden name="modifyMan" value="{{layui.data(layui.setter.tableName)['userInfo'].id}}">
        <input type="text" hidden name="modifyTime" value="{{d.params.modifyTime || ''}}">        
    </script>
    
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-user-add-submit" value="确认" class="layui-btn">
        </div>
    </div>
</form>

